package com.usian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 陈宇轩
 * @version 1.0
 * @date 2023/8/9 16:44
 */
@Data
@ToString
@TableName("com")
public class Com {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String photo;
    private String name;
    private Integer cid;
    private String lid;
    private String members;
    private String sched;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date startdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date enddate;
    private Integer sort;
    private Integer status;
    //参赛人员
    private String people;
    //全员答题
    private String wer;
    //报名海报
    private String poster;
    //计分方式
    private String method;
    @TableField(exist = false)
    private String cname;

}
